@extends('admin.admin')

@section('content')
    <link rel="stylesheet" href="/components/AdminLTE/plugins/daterangepicker/daterangepicker-bs3.css">

<!-- date-range-picker -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.2/moment.min.js"></script>
<script src="/components/AdminLTE//plugins/daterangepicker/daterangepicker.js"></script>
        <!-- Content Header (Page header) -->
<section class="content-header">
    <h1>
        通知管理
        <small>通知列表</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="/admin"><i class="fa fa-dashboard"></i> 控制面板</a></li>
        <li ><a href="/admin/order/shippingOrder">通知管理</a></li>
        <li class="active">通知列表</li>
    </ol>
</section>

<!-- Main content -->
<section class="content">

    <div class="row">
        <div class="col-xs-12">

            <div class="box box-primary">
                <div class="box-header">
                    <h3 class="box-title">通知列表</h3>
                    
                </div>
                <!-- /.box-header -->
                <div class="box-body table-responsive no-padding">
                    <table class="table table-hover">
                        <tr>
                            <th style="width: 100px;">通知ID</th>
                            <th style="width: 100px;">通知类型</th>
                            <th style="width: 100px;">用户</th>
                            <th style="width: 160px;">通知时间</th>

                        </tr>
                        @foreach ($notice as $item)
                        <tr>
                            <td>{{@$item->notice_id}}</td>
                            <td>{{@$item->notice_type}}</td>
                            <td>{{@$item->user_id}}</td>
                            <td>{{@$item->notice_time}}</td>

                        </tr>
                        @endforeach

                    </table>
                </div>
                <!-- /.box-body -->

                <div class="box-footer">
                    <!-- 分页 -->
                    <div class="pull-right no-margin-pager">
                        {!! $notice->render() !!}
                    </div>

                </div>
            </div>
            <!-- /.box -->
        </div>
    </div>
</div>


</section>

<script>
    var daterRange=$('#daterange-btn'),input=$('#time'),getTime=input.val();

    utils.datePredefinedRanges(daterRange,input,getTime);
</script>
<!-- /.content -->
@endsection